package org.e_gold.schedule;

import org.apache.log4j.Logger;
import org.e_gold.factory.Manager;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MainJob implements InitializingBean {

    private static final Logger logger = Logger.getLogger(MainJob.class);
    @Autowired
    private Manager manager;

    @Override
    public void afterPropertiesSet() throws Exception {

        logger.info("Main Thread manager");
        manager.start();
    }
}
